package com.voe.common;

//NetEQ playout configurations
public enum NetEqModes {
	
	/** Optimized trade-off between low delay and jitter robustness for two-way
     *  communication.
     */
    kNetEqDefault(0),
    /** Improved jitter robustness at the cost of increased delay. Can be
     *  used in one-way communication.
     */
    kNetEqStreaming(1),
    /** Optimzed for decodability of fax signals rather than for perceived audio
     *  quality.
     */
    kNetEqFax(2),
    /** Minimal buffer management. Inserts zeros for lost packets and during
     *  buffer increases.
     */
    kNetEqOff(3);
	
    public static NetEqModes fromValue(int value) {
		for (int i=0;i<NetEqModes.values().length;i++) {
			if(NetEqModes.values()[i].getValue() == value)
				return NetEqModes.values()[i];
		}
		return null;
	}

	/**
	 * Constructor.
	 */
	private NetEqModes(int value) {
		this.value = value;
	}

	/**
	 * Get the value.
	 * 
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	private final int value;
}
